gdk: offscreen window source drawable now is the root window
authorBenjamin Otte <otte@redhat.com>
Wed, 25 Aug 2010 21:39:30 +0000 (23:39 +0200)
committerBenjamin Otte <otte@redhat.com>
Sun, 26 Sep 2010 13:11:11 +0000 (15:11 +0200)
As the source drawable is only used for creating pixmaps these days, we
don't have to keep a real drawable around, but can just use the root
window.

gdk/gdkoffscreenwindow.c

index f0f7664abc0e8104f5cb148c048cb3eed70b79ca..30df772522ab1310ac4cdb5ad9e60506128b94ef 100644 (file)
@@ -183,7 +183,7 @@ gdk_offscreen_window_get_source_drawable (GdkDrawable  *drawable)
 {
   GdkOffscreenWindow *offscreen = GDK_OFFSCREEN_WINDOW (drawable);
 
-  return _gdk_drawable_get_source_drawable (offscreen->pixmap);
+  return gdk_screen_get_root_window (offscreen->screen);
 }
 
 static GdkScreen*